package com.grace.mapper;

import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface EmpMapper {

    @Select("select dept_name from dept_info")
    List<String> getDeptName();

    @Select("select count(emp.dept_id) from emp,dept_info o WHERE emp.dept_id=o.id group by emp.dept_id")
    List<Integer> getDeptNum();
}
